export const setUserInfo = (value = {}) => {
  return {
    type: 'USER_INFO',
    value
  }
}

export const setSocket = (value = {id: ''}) => {
  return {
    type: 'SOCKET_INFO',
    value
  }
}

export const setContacts = (value = []) => {
  return {
    type: 'CONTACTS',
    value
  }
}

export const setDialogs = (value = []) => {
  return {
    type: 'DIALOGS',
    value
  }
}

export const setUnread = (value = 0) => {
  return {
    type: 'UNREAD',
    value
  }
}
